package org.kanglg.demo.entity;

import org.kanglg.common.annotation.Left;
import org.kanglg.common.annotation.NodeID;
import org.kanglg.common.annotation.Right;
import org.kanglg.common.annotation.UpID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table
public class Dept {
    @Id
    @NodeID
    private String id;
    @Column(name = "dept_name")
    private String deptName;
    @Column(name = "up_id")
    @UpID
    private String upId;
    @Column(name = "p_left")
    @Left
    private Long pLeft;
    @Column(name = "p_right")
    @Right
    private Long pRight;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUpId() {
        return upId;
    }

    public void setUpId(String upId) {
        this.upId = upId;
    }

    public Long getPLeft() {
        return pLeft;
    }

    public void setPLeft(Long pLeft) {
        this.pLeft = pLeft;
    }

    public Long getPRight() {
        return pRight;
    }

    public void setPRight(Long pRight) {
        this.pRight = pRight;
    }
}
